From 2e728ee2d16ad5e40df4683c96cf6424368d7773 Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 1 Nov 2004 17:34:28 +0000 Subject: [PATCH] On UNIX, there's no reason to spin on the select. Wait at least a character time before looking again. --- gpsbabel/jeeps/gpsserial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/jeeps/gpsserial.c b/gpsbabel/jeeps/gpsserial.c index 1953500d2..b2a51bb22 100644 --- a/gpsbabel/jeeps/gpsserial.c +++ b/gpsbabel/jeeps/gpsserial.c @@ -456,7 +456,7 @@ int32 GPS_Serial_Chars_Ready(int32 fd) FD_SET(fd,&rec); t.tv_sec = 0; - t.tv_usec = 0; + t.tv_usec = 1000; (void) select(fd+1,&rec,NULL,NULL,&t); if(FD_ISSET(fd,&rec)) return 1; -- 2.30.2